package com.botao.tip.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.botao.tip.entity.Department;

import java.util.List;

/**
 * @author : vip865047755@126.com
 * @version :JDK1.8
 * @date : 2020/12/2 22:47
 * @File : DepartmentService.java
 * @software: IntelliJ IDEA
 */
public interface DepartmentService extends IService<Department> {

    /**
     * 按照id查询所有部门
     *
     * @return
     */
    List<Department> queryAll();

    /**
     * 根据部门id查询部门
     *
     * @param departmentId
     * @return
     */
    Department queryAllById(int departmentId);

    /**
     * 添加部门
     *
     * @param department
     * @return
     */
    int addDepartment(String department);


}
